package com.kasinf.sample.sky.controller;

import com.kasinf.sample.sky.entity.UserEntity;
import com.kasinf.sample.sky.mapper.UserMapper;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author : Kaiser
 * @Date: 2025/7/7  14:55
 */
@RestController
@RequestMapping("/demo")
public class DemoController {

    @Resource
    private UserMapper userMapper;


    @GetMapping("mysql")
    public UserEntity selectById() {
        return userMapper.selectById(1L);
    }
}
